const test = require('../service/test')
const {
	addValue,
	deleteValueById,
	updateValue,
	queryValue
} = require('../service/index')
// 接口配置
const publicConfig = [
	{
		//测试接口
		type: 'get',
		checkToken: false,
		params: ['/test', test],
	},
	{
		//添加
		type: 'post',
		checkToken: true,
		params: ['/addValue/*', addValue],
	},
	{
		//删除
		type: 'post',
		checkToken: true,
		params: ['/deleteValueById/*', deleteValueById],
	},
	{
		//更新
		type: 'post',
		checkToken: true,
		params: ['/updateValue/*', updateValue],
	},
	{
		//查询
		type: 'post',
		checkToken: true,
		params: ['/queryValue/*', queryValue],
	},
]

module.exports = publicConfig
